import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
const protool = "https:";
const host = "t.me/LastOasis_bot/LastOasis";


export const config: {
    backendUrl: string,
    URL_YOU_ASSIGNED_TO_YOUR_APP: `${string}://${string}`
} = {
    //backendUrl:"https://game.lastoasis.org",
    backendUrl: "http://18.136.79.134:3000",
    URL_YOU_ASSIGNED_TO_YOUR_APP: `${protool}://${host}`

}

export interface TonAddressConfig {
    tonAddress: string,
    jettonAddress?: string;
}
@ccclass('Config')
export class Config {

    public static version = "V1.0.13a"
    public static buildVersion = "Build-1.2.21" + ""
    //public static wss = 'ws://43.154.148.23:6161/api/boss'

    // public static wss = 'https://game.lastoasis.org/ws'
    // public static httpHost = 'https://game.lastoasis.org/api'
    // public static host = 'https://game.lastoasis.org'


    public static wss = 'https://test.lastoasis.org/ws'
    public static httpHost = 'https://test.lastoasis.org/api'

    public static wssAD = 'wss://test.lastoasis.org/ad'
    public static httpHostAD = 'https://test.lastoasis.org/ad'


    // public static wss = 'https://game.lastoasis.org/ws'
    // public static httpHost = 'https://game.lastoasis.org/api'

    // public static wssAD = 'wss://game.lastoasis.org/ad'
    // public static httpHostAD = 'https://game.lastoasis.org/ad'





    public static host = 'https://test.lastoasis.org'


    //public static httpHost = 'http://43.154.148.23/api'


    public static xLink = 'https://x.com/LastOasisTon'

    public static tgLogin = Config.httpHost + '/tg/tgLogin'
    //https://game.lastoasis.org/api/tg/getInfo
    public static getRandomDrop = Config.httpHost + '/tg/getRandomDrop'
    public static getInfo = Config.httpHost + '/tg/getInfo'
    public static cdkVerify = Config.httpHost + '/tg/cdkVerify'
    public static getBossAward = Config.httpHost + '/tg/getBossAward'
    public static signinList = Config.httpHost + '/tg/signin/signinList'
    public static signin = Config.httpHost + '/tg/signin/signin'
    public static userSigninList = Config.httpHost + '/tg/signin/userSigninList'
    public static isSignin = Config.httpHost + '/tg/signin/isSignin'

    public static list = Config.httpHost + '/tg/store/list'
    public static buy = Config.httpHost + '/tg/store/buy'


    public static taskList = Config.httpHost + '/tg/task/taskList'
    public static userTaskList = Config.httpHost + '/tg/task/userTaskList'
    public static addTgChannel = Config.httpHost + '/tg/task/addTgChannel'
    public static addX = Config.httpHost + '/tg/task/addX'
    public static likeX = Config.httpHost + '/tg/task/likeX'

    public static getChildList = Config.httpHost + '/tg/getChildList'

    public static isLikeX = Config.httpHost + '/tg/task/isLikeX'

    public static doTask = Config.httpHost + '/tg/task/doTask'
    public static getReceiveAddress = Config.httpHost + '/tg/store/getReceiveAddress'

    public static getAdventureAward = Config.httpHostAD + '/tg/adventure/getAdventureAward'

    public static getRankList = Config.httpHostAD + '/tg/rank/list'
    public static getRankHistoryList = Config.httpHostAD + '/tg/rank/historyList'



    public static upgradeInfo = Config.httpHost + '/tg/upgradeInfo'
    public static unlock = Config.httpHost + '/tg/unlock'

    public static upgradeWeapon = Config.httpHost + '/tg/upgradeWeapon'
    public static getUnlockPrice = Config.httpHost + '/tg/getUnlockPrice'
    public static getWeapon = Config.httpHost + '/tg/getWeapon'



}


